import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-test-pipe',
  templateUrl: './test-pipe.component.html',
  styleUrls: ['./test-pipe.component.css']
})
export class TestPipeComponent implements OnInit {
  public currentDate:any = new Date();
  constructor() { 
    setInterval(() => {
        this.currentDate = new Date();
    })
  }

  ngOnInit() {
  }

}
